﻿@model HinduShop.UI.ViewModels.Account.UserListViewModel

@{
    ViewBag.Title = "UserList";
}

<h2>Все пользователи</h2>

<p>@Html.ActionLink("Добавить пользователя","AddUser") </p>

<table>
    <tr>
        <th>Id</th>
        <th>UserName</th>
        <th>ApplicationName</th>
        <th>Email</th>
        <th>Comment</th>
        <th>Password</th>
        <th></th>
    </tr>
    @foreach (var item in Model.Users)
    {
        <tr>
            <td>@Html.DisplayFor((modelItem => item.Id))</td>
            <td>@Html.DisplayFor(modelItem => item.UserName)</td>
            <td>@Html.DisplayFor(modelItem => item.ApplicationName)</td>
            <td>@Html.DisplayFor(modelItem => item.Email)</td>
            <td>@Html.DisplayFor(modelItem => item.Comment)</td>
            <td>@Html.DisplayFor(modelItem => item.PasswordHash)</td>
            <td>
@*                @Html.ActionLink("Edit", "Edit", new { id = item.Id });*@
@*                @Html.ActionLink("Details", "Details", new { id = item.Id });*@
                @Html.ActionLink("Delete", "DeleteUser", new { id = item.Id });
                @Html.ActionLink("EditRoles", "EditRoles", new { userId = item.Id });
            </td>
        </tr>
    }
</table>